package com.ekuaitu.kuaitustaff.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by micha on 2017/3/18.
 */

public class StaffOrderBean implements Serializable {

    /**
     * errCode : 0
     * message : 成功
     * attachment : {"carId":489,"latitude":36.180981919202516,"longitude":120.41163756639608,"location":"升平东路20号(永清苑社区1号楼内0米)","orderTypeName":"续航充电","orderType":"3","action":{"isCharge":"yes","actionType":1,"carOrders":[{"carId":61,"workType":1,"orderId":121936,"distributeType":2,"title":"大众","taskNameArray":["运营调度"],"createTime":1519889400000,"latitude":36.116995,"longitude":120.391225,"locationName":"淮安路6号(鸿仕雅居-北门附近25米)","status":0,"isOnline":1,"receiveTime":-28800000,"orderNum":"01519889400076","licenseTag":"京Q6KK29","parkName":null,"parkType":null,"brandModel":"大众POLO","isUserWorkOrder":"0","unReciveTime":3660,"mileage":89,"carImg":"201802131328","shortName":"接","isBigPic":0,"picColor":{"g":217,"b":255,"r":129},"isOpenCheck":0,"androidIcon":"","volatage":12.6,"taskType":17}]},"description":"续航低于40公里自动派发工单","pileList":[{"longitude":31431.45,"latitude":13123.123},{"longitude":31431.45,"latitude":13123.123}]}
     */

    private int errCode;
    private String message;
    public AttachmentBean attachment;

    public int getErrCode() {
        return errCode;
    }

    public void setErrCode(int errCode) {
        this.errCode = errCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public AttachmentBean getAttachment() {
        return attachment;
    }

    public void setAttachment(AttachmentBean attachment) {
        this.attachment = attachment;
    }

    public static class AttachmentBean implements Serializable {
        /**
         * carId : 489
         * latitude : 36.180981919202516
         * longitude : 120.41163756639608
         * location : 升平东路20号(永清苑社区1号楼内0米)
         * orderTypeName : 续航充电
         * orderType : 3
         * action : {"isCharge":"yes","actionType":1,"carOrders":[{"carId":61,"workType":1,"orderId":121936,"distributeType":2,"title":"大众","taskNameArray":["运营调度"],"createTime":1519889400000,"latitude":36.116995,"longitude":120.391225,"locationName":"淮安路6号(鸿仕雅居-北门附近25米)","status":0,"isOnline":1,"receiveTime":-28800000,"orderNum":"01519889400076","licenseTag":"京Q6KK29","parkName":null,"parkType":null,"brandModel":"大众POLO","isUserWorkOrder":"0","unReciveTime":3660,"mileage":89,"carImg":"201802131328","shortName":"接","isBigPic":0,"picColor":{"g":217,"b":255,"r":129},"isOpenCheck":0,"androidIcon":"","volatage":12.6,"taskType":17}]}
         * description : 续航低于40公里自动派发工单
         * pileList : [{"longitude":31431.45,"latitude":13123.123},{"longitude":31431.45,"latitude":13123.123}]
         */

        private int carId;
        private double latitude;
        private double longitude;
        private String location;
        private String orderTypeName;
        private String orderType;
        public ActionBean action;
        private String description;
        private List<PileListBean> pileList;
        private String preditScore;//预估积分,各种工单按一定公式算出的积分，一般小于实际积分（续航充电不显示预估分）
        private int operateRange; //还车半径

        public String getPreditScore() {
            return preditScore;
        }

        public void setPreditScore(String preditScore) {
            this.preditScore = preditScore;
        }

        public int getOperateRange() {
            return operateRange;
        }

        public void setOperateRange(int operateRange) {
            this.operateRange = operateRange;
        }


        public int getCarId() {
            return carId;
        }

        public void setCarId(int carId) {
            this.carId = carId;
        }

        public double getLatitude() {
            return latitude;
        }

        public void setLatitude(double latitude) {
            this.latitude = latitude;
        }

        public double getLongitude() {
            return longitude;
        }

        public void setLongitude(double longitude) {
            this.longitude = longitude;
        }

        public String getLocation() {
            return location;
        }

        public void setLocation(String location) {
            this.location = location;
        }

        public String getOrderTypeName() {
            return orderTypeName;
        }

        public void setOrderTypeName(String orderTypeName) {
            this.orderTypeName = orderTypeName;
        }

        public String getOrderType() {
            return orderType;
        }

        public void setOrderType(String orderType) {
            this.orderType = orderType;
        }

        public ActionBean getAction() {
            return action;
        }

        public void setAction(ActionBean action) {
            this.action = action;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public List<PileListBean> getPileList() {
            return pileList;
        }

        public void setPileList(List<PileListBean> pileList) {
            this.pileList = pileList;
        }

        public static class ActionBean implements Serializable {
            /**
             * isCharge : yes
             * actionType : 1
             * carOrders : [{"carId":61,"workType":1,"orderId":121936,"distributeType":2,"title":"大众","taskNameArray":["运营调度"],"createTime":1519889400000,"latitude":36.116995,"longitude":120.391225,"locationName":"淮安路6号(鸿仕雅居-北门附近25米)","status":0,"isOnline":1,"receiveTime":-28800000,"orderNum":"01519889400076","licenseTag":"京Q6KK29","parkName":null,"parkType":null,"brandModel":"大众POLO","isUserWorkOrder":"0","unReciveTime":3660,"mileage":89,"carImg":"201802131328","shortName":"接","isBigPic":0,"picColor":{"g":217,"b":255,"r":129},"isOpenCheck":0,"androidIcon":"","volatage":12.6,"taskType":17}]
             */

            private String isCharge;
            private String actionType;//0:调度  1:充电 2:什么都不做 3:加油
            private double latitude;//如果actionType =0,3  会有此字段
            private double longitude;//如果actionType =0,3  会有此字段
            private double washLatitude;
            private double washLongitude;
            private String washLocationName;
            private String isWashCar;
            private String location;//如果actionType =0,3  会有此字段
            private String preditScore;//预估积分,各种工单按一定公式算出的积分，一般小于实际积分（续航充电不显示预估分）
            private int operateRange; //还车半径
            private int isRefuel;//0：加油未完成  1：加油完成

            public int getIsRefuel() {
                return isRefuel;
            }

            public void setIsRefuel(int isRefuel) {
                this.isRefuel = isRefuel;
            }

            public String getPreditScore() {
                return preditScore;
            }

            public void setPreditScore(String preditScore) {
                this.preditScore = preditScore;
            }

            public int getOperateRange() {
                return operateRange;
            }

            public void setOperateRange(int operateRange) {
                this.operateRange = operateRange;
            }

            private List<CarOrderBean.AttachmentBean> carOrders;

            public String getWashLocationName() {
                return washLocationName;
            }

            public void setWashLocationName(String washLocationName) {
                this.washLocationName = washLocationName;
            }

            public double getWashLatitude() {
                return washLatitude;
            }

            public void setWashLatitude(double washLatitude) {
                this.washLatitude = washLatitude;
            }

            public double getWashLongitude() {
                return washLongitude;
            }

            public void setWashLongitude(double washLongitude) {
                this.washLongitude = washLongitude;
            }

            public double getLatitude() {
                return latitude;
            }

            public void setLatitude(double latitude) {
                this.latitude = latitude;
            }

            public double getLongitude() {
                return longitude;
            }

            public void setLongitude(double longitude) {
                this.longitude = longitude;
            }

            public String getIsWashCar() {
                return isWashCar;
            }

            public void setIsWashCar(String isWashCar) {
                this.isWashCar = isWashCar;
            }

            public String getLocation() {
                return location;
            }

            public void setLocation(String location) {
                this.location = location;
            }


            public String getIsCharge() {
                return isCharge;
            }

            public void setIsCharge(String isCharge) {
                this.isCharge = isCharge;
            }

            public String getActionType() {
                return actionType;
            }

            public void setActionType(String actionType) {
                this.actionType = actionType;
            }

            public List<CarOrderBean.AttachmentBean> getCarOrders() {
                return carOrders;
            }

            public void setCarOrders(List<CarOrderBean.AttachmentBean> carOrders) {
                this.carOrders = carOrders;
            }
        }
    }

    public static class PileListBean {
        /**
         * longitude : 31431.45
         * latitude : 13123.123
         */

        private double longitude;
        private double latitude;

        public double getLongitude() {
            return longitude;
        }

        public void setLongitude(double longitude) {
            this.longitude = longitude;
        }

        public double getLatitude() {
            return latitude;
        }

        public void setLatitude(double latitude) {
            this.latitude = latitude;
        }
    }
}

